package com.smartfactory.sail.entity.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

/**
 * @author 王巨壁
 * @title: OrderModelEnum
 * @projectName smart-sail
 * @description: 订单类型
 * @date 2019/7/311:52
 */
public enum OrderModelEnum implements IEnum {
    SCDD(1,"生产订单"),
    XMDD(2,"修磨订单"),
    WBDD(3,"外包订单"),
    HHDD(4,"混合订单"),
    ;


    OrderModelEnum(int code, String descp) {
        this.code = code;
        this.descp = descp;
    }


    private final int code;
    private final String descp;

    public int getCode() {
        return code;
    }
    @JsonValue
    public String getDescp() {
        return descp;
    }

    @Override
    public Serializable getValue() {
        return code;
    }
}
